package pl.skubicha.response;

import java.io.Serializable;
import java.util.Set;

import javax.validation.constraints.Size;

import pl.skubicha.domain.Groups;
import pl.skubicha.domain.Users;

public class SubjectDTO implements Serializable {

	private static final long serialVersionUID = 7694112037043015024L;

	private Integer id;

	@Size(min=1, message="Pole nie może być puste! ")
	private String subjectName;

	private Users user;

	private Set< Groups > groups;

	public SubjectDTO() {

	}

	public SubjectDTO( final Integer id, final String subjectName ) {
		this.id = id;
		this.subjectName = subjectName;
	}

	public SubjectDTO( final Integer id, final String subjectName, final Users user, final Set< Groups > groups ) {
		this.id = id;
		this.subjectName = subjectName;
		this.user = user;
		this.groups = groups;
	}

	public Integer getId() {
		return id;
	}

	public void setId( final Integer id ) {
		this.id = id;
	}

	public String getSubjectName() {
		return subjectName;
	}

	public void setSubjectName( final String subjectName ) {
		this.subjectName = subjectName;
	}

	public Users getUser() {
		return user;
	}

	public void setUser( final Users user ) {
		this.user = user;
	}

	public Set< Groups > getGroups() {
		return groups;
	}

	public void setGroups( final Set< Groups > groups ) {
		this.groups = groups;
	}
}